﻿namespace Shortcuts.ViewModels
{
    using Shortcuts.Globalization;

    public class AboutPageContext : System.ComponentModel.INotifyPropertyChanged
    {
        public AboutPageContext()
        {
            Title = "SHORTCUTS".Localized();
            About = "about".Localized();
            AboutContent = "about content".Localized();
        }

        #region properties

        string title;
        public string Title
        {
            get
            {
                return title;
            }
            set
            {
                if (title != value)
                {
                    title = value;
                    NotifyPropertyChanged("Title");
                }
            }
        }

        string about;
        public string About
        {
            get
            {
                return about;
            }
            set
            {
                if (about != value)
                {
                    about = value;
                    NotifyPropertyChanged("About");
                }
            }
        }
        string aboutContent;
        public string AboutContent
        {
            get
            {
                return aboutContent;
            }
            set
            {
                if (aboutContent != value)
                {
                    aboutContent = value;
                    NotifyPropertyChanged("AboutContent");
                }
            }
        }

        #endregion

        public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
        void NotifyPropertyChanged(string property)
        {
            System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null)
            {
                handler(this, new System.ComponentModel.PropertyChangedEventArgs(property));
            }
        }
    }
}
